<h1 class="text-center"><?php echo __("Quote Calcio"); ?></h1>
<h2 class="text-center"><?php echo __($country); ?></h2>
		
<div id="country" data-country='<?php echo $country; ?>' ></div>
<div id="webroot" data-url='<?php echo $this->webroot; ?>' ></div>
          
<?php $xml=simplexml_load_file("http://www.goalserve.com/getfeed/18945090b13942a5834efeec7eb903e2/soccer_odds/".$country."_shedule");

foreach($xml->category as $category){ ?>
	<div id="tournament-template" class="tournament container-fluid">
	        <div class="header-tournament-live row">
	            <div class="country col-md-12"><?php echo $category->attributes()->name; ?></div>
	        </div>
	        <div class="body-tournament-live row">
				<? foreach($category->matches->match as $match){ ?>
					<div id="match-template" class="match container-fluid" data-static-id="">
						<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/odds/".$country."/".$match->attributes()->static_id; ?>' >
					        <div class="header-match-live row">
					            <div class="date col-md-3"><?php echo $match->attributes()->formatted_date . " " . $match->attributes()->time; ?></div>
					            <div class="localteam  col-md-4"><?php echo $match->localteam->attributes()->name; ?></div>
					            <div class="visitorteam col-md-4"><?php echo $match->visitorteam->attributes()->name; ?></div>
	                            <div class="stats col-md-1"><a class='stats' title="<?php echo __("Statistiche"); ?>" href="<?php echo $this->webroot.Configure::read("Config.lang"); ?>/stats/match/<?php echo $match->localteam->attributes()->id; ?>/<?php echo $match->visitorteam->attributes()->id; ?>"><i class="glyphicon glyphicon-stats"></i></a></div>
					        </div>
					     </a>
					</div>
				<?php } ?>
	        </div>
	</div>
<?php } ?>

